package miiteen.demo.duty.beans;

import com.fasterxml.jackson.annotation.JsonFormat;
import miiteen.common.utils.FieldMeta;
import miiteen.sys.base.bean.BasePo;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Instruction extends BasePo {




    @FieldMeta(name = "id")
    private String id;

    @FieldMeta(name = "标题")
    private String title;

    @FieldMeta(name = "内容")
    private String content;

    @FieldMeta(name = "发布时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date  publishDate;

    @FieldMeta(name = "部门")
    private String deptName;

    @FieldMeta(name = "行数")
    private String rowNum;

    @FieldMeta(name = "URL")
    private String url;

    @FieldMeta(name = "今日浏览量")
    private int todayNumber;

    @FieldMeta(name = "总浏览量")
    private int totalNumber;



    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    public Date getPublishDate() {
        return publishDate;
    }

    public void setPublishDate(Date publishDate) {
        this.publishDate = publishDate;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getRowNum() {
        return rowNum;
    }

    public void setRowNum(String rowNum) {
        this.rowNum = rowNum;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public int getTodayNumber() {
        return todayNumber;
    }

    public void setTodayNumber(int todayNumber) {
        this.todayNumber = todayNumber;
    }

    public int getTotalNumber() {
        return totalNumber;
    }

    public void setTotalNumber(int totalNumber) {
        this.totalNumber = totalNumber;
    }
}
